<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/los.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('los_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">includes/los.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="los_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef LOS_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define LOS_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;<a class="code" href="graph_8h.html">graph.h</a>&quot;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &quot;<a class="code" href="solution_8h.html">solution.h</a>&quot;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;<a class="code" href="tabooState_8h.html">tabooState.h</a>&quot;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;<a class="code" href="solution_8h.html">solution.h</a>&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="ALGConfiguration_8h.html">ALGConfiguration.h</a>&quot;</span>
<a name="l00025"></a>00025 
<a name="l00029"></a><a class="code" href="los_8h.html#a6e00a2fb35dc6707708ee7bb73b30cdd">00029</a> <span class="preprocessor">#define MOVE_ADD 0</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00033"></a><a class="code" href="los_8h.html#a942eeb4ae0805d43bebb8806b712c08a">00033</a> <span class="preprocessor">#define MOVE_SWAP 1</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00037"></a><a class="code" href="los_8h.html#aca2160883183aabb44e9c55536e9c937">00037</a> <span class="preprocessor">#define MOVE_REMOVE 2</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00040"></a><a class="code" href="los_8h.html#ae6e6bd84c4bacfdd4002cbc97a2527cc">00040</a> <span class="preprocessor">#define MOVE_STATUS_IMPROVE 1</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a><a class="code" href="los_8h.html#a6d5bd2fe1ebf4b48a88084c50eadfcb0">00042</a> <span class="preprocessor">#define MOVE_STATUS_WORSEN 2</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00046"></a><a class="code" href="los_8h.html#ac6f1b10d1aeedd6d056feb10c5569c21">00046</a> <span class="preprocessor">#define MOVE_STATUS_UNCHANGED 3</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span>
<a name="l00048"></a><a class="code" href="los_8h.html#a46f4bf9b16c21de45b4e49ee0988abe3">00048</a> <span class="preprocessor">#define MOVE_STATUS_FAIL 0</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span>
<a name="l00051"></a><a class="code" href="structLOSConfiguration.html">00051</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structLOSConfiguration.html">LOSConfiguration</a> {
<a name="l00053"></a><a class="code" href="structLOSConfiguration.html#a7589b99b918b7b07ed07c2a23cde84b1">00053</a>         <span class="keywordtype">int</span> <a class="code" href="structLOSConfiguration.html#a7589b99b918b7b07ed07c2a23cde84b1">evaluate</a>;
<a name="l00055"></a><a class="code" href="structLOSConfiguration.html#a0825bab018102589f172e29c6adc4060">00055</a>         <span class="keywordtype">int</span> <a class="code" href="structLOSConfiguration.html#a0825bab018102589f172e29c6adc4060">addEdgeTenure</a>;
<a name="l00057"></a><a class="code" href="structLOSConfiguration.html#ab9a18c4e89d33ecc649a0fa7ac8d206b">00057</a>         <span class="keywordtype">int</span> <a class="code" href="structLOSConfiguration.html#ab9a18c4e89d33ecc649a0fa7ac8d206b">removeEdgeTenure</a>;
<a name="l00058"></a>00058 } <a class="code" href="los_8h.html#aed8d3fa4c257841c414f74059768204c">LOSConfiguration</a>;
<a name="l00059"></a>00059 
<a name="l00060"></a><a class="code" href="los_8h.html#afecb04de172c596cdc7b8b7a86c687d7">00060</a> <span class="keyword">typedef</span> <a class="code" href="structLOSConfiguration.html">LOSConfiguration</a>* <a class="code" href="los_8h.html#afecb04de172c596cdc7b8b7a86c687d7">pLOSConfiguration</a>;
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 <a class="code" href="structLOSConfiguration.html">pLOSConfiguration</a> <a class="code" href="los_8h.html#a437a332774430704162eade97987acd0">initLOSConfiguration</a>(<a class="code" href="structALGConfiguration.html">PalgConfiguration</a> pALGconfig);
<a name="l00063"></a>00063 
<a name="l00065"></a><a class="code" href="structEdgePair.html">00065</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structEdgePair.html">EdgePair</a> {
<a name="l00066"></a><a class="code" href="structEdgePair.html#afa8a9193e5cd2a91d673b76a0f5da39e">00066</a>         <a class="code" href="structEdgeID.html">EdgeID</a> <a class="code" href="structEdgePair.html#afa8a9193e5cd2a91d673b76a0f5da39e">e_il</a>;
<a name="l00067"></a><a class="code" href="structEdgePair.html#ad6885d351f5a5fe2b4ddab414169b345">00067</a>         <a class="code" href="structEdgeID.html">EdgeID</a> <a class="code" href="structEdgePair.html#ad6885d351f5a5fe2b4ddab414169b345">e_jl</a>;
<a name="l00068"></a>00068 } <a class="code" href="los_8h.html#ab58cd3c6e1a39587e826f01c0ffc9c6a">EdgePair</a>;
<a name="l00070"></a><a class="code" href="los_8h.html#afb786725c980357f51c0c16ff8414746">00070</a> <span class="keyword">typedef</span> <a class="code" href="structEdgePair.html">EdgePair</a>* <a class="code" href="los_8h.html#afb786725c980357f51c0c16ff8414746">PedgePair</a>;
<a name="l00071"></a>00071 
<a name="l00077"></a><a class="code" href="structBestAddRemoveChoice.html">00077</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structBestAddRemoveChoice.html">BestAddRemoveChoice</a> {
<a name="l00079"></a><a class="code" href="structBestAddRemoveChoice.html#abfc0dfe188bef66f8055f9242769dd20">00079</a>         <a class="code" href="structEdgeID.html">EdgeID</a> <a class="code" href="structBestAddRemoveChoice.html#abfc0dfe188bef66f8055f9242769dd20">e_il</a>;
<a name="l00081"></a><a class="code" href="structBestAddRemoveChoice.html#a44e02ceb6886a00759c38c5f2fc460cd">00081</a>         <a class="code" href="structEdgeID.html">EdgeID</a> <a class="code" href="structBestAddRemoveChoice.html#a44e02ceb6886a00759c38c5f2fc460cd">e_jl</a>;
<a name="l00082"></a><a class="code" href="structBestAddRemoveChoice.html#aed06ba968a3e4cb111b7a17d306856de">00082</a>         <a class="code" href="structEdgeID.html">EdgeID</a> <a class="code" href="structBestAddRemoveChoice.html#aed06ba968a3e4cb111b7a17d306856de">e_ij</a>;
<a name="l00084"></a><a class="code" href="structBestAddRemoveChoice.html#ac6883384c2f9355252922ebc0263b3cc">00084</a>         <a class="code" href="graph_8h.html#ad8909b856fa70c7731c787994276fb03">Weight</a> <a class="code" href="structBestAddRemoveChoice.html#ac6883384c2f9355252922ebc0263b3cc">bestScore</a>;
<a name="l00085"></a>00085 } <a class="code" href="los_8h.html#a3ecf8d3eda795e349fb039e8fcf9a03c">BestAddRemoveChoice</a>;
<a name="l00086"></a>00086 
<a name="l00088"></a><a class="code" href="los_8h.html#a845149128ecdc5563a7a798c5781dc0c">00088</a> <span class="keyword">typedef</span> <a class="code" href="structBestAddRemoveChoice.html">BestAddRemoveChoice</a>* <a class="code" href="los_8h.html#a845149128ecdc5563a7a798c5781dc0c">PbestAddRemoveChoice</a>;
<a name="l00089"></a>00089 
<a name="l00112"></a>00112 <span class="keywordtype">int</span> <a class="code" href="los_8h.html#a5d23698e29078da6bf1596b417a1df8c">solveLocalSearch</a>(<a class="code" href="structGraph.html">Pgraph</a> p_graph, <a class="code" href="structSolution.html">Psolution</a> p_solution, <span class="keywordtype">int</span> k, <a class="code" href="structTabooState.html">PtabooState</a> p_tabooState, <span class="keywordtype">int</span> moveType, <a class="code" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now, <a class="code" href="structLOSConfiguration.html">pLOSConfiguration</a> pLOSconfig);
<a name="l00113"></a>00113 
<a name="l00123"></a>00123 <a class="code" href="structEdgePair.html">PedgePair</a> <a class="code" href="los_8h.html#a586fd953db07a1a9eb31761c72a87da0">getEdgeTriangles</a>(<a class="code" href="structEdgeID.html">EdgeID</a> e_ij, <span class="keywordtype">int</span> N);
<a name="l00124"></a>00124 
<a name="l00137"></a>00137 <a class="code" href="structEdgeID.html">PedgeID</a> <a class="code" href="los_8h.html#a6d96d2b05304fd01bf15c9adaf94f60f">getEdgeTriangulating</a>(<a class="code" href="structEdgeID.html">PedgeID</a> pe_il, <a class="code" href="structEdgeID.html">PedgeID</a> pe_jl);
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 <span class="preprocessor">#endif </span><span class="comment">/* LOS_H_ */</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="los_8h.html">los.h</a>      </li>

    <li class="footer">Generated on Wed Sep 4 2013 06:38:56 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
